import type { IProps } from "./index.d";
import React from "react";
import './index.less';

const DetailsTitle: React.FC<IProps> = ({ title, contentRight, onClick }) => {
  return (
    <div
      className="detailsTitle"
      onClick={() => {
        onClick?.();
      }}
    >
      <div>{title ?? ""}</div>
      {contentRight ?? null}
    </div>
  );
};

export default DetailsTitle;
